package com.ibeeking.found.cop.service.mapper;

import com.ibeeking.found.common.base.BaseMapper;
import com.ibeeking.found.cop.service.common.dos.CopDepartmentDO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface CopDepartmentMapper extends BaseMapper<CopDepartmentDO> {

     Integer batchInsertDepartmentListFromWxCp(@Param("tenantId") Long tenantId, @Param("departmentList") List<CopDepartmentDO> copDepartmentDO);

     Integer insertDepartmentFromWxCp(@Param("tenantId") Long tenantId, @Param("department") CopDepartmentDO copDepartmentDO);

     Integer updateDepartmentFromWxCp(@Param("tenantId") Long tenantId, @Param("department") CopDepartmentDO copDepartmentDO);

     Integer deleteDepartmentFromWxCp(@Param("tenantId") Long tenantId, @Param("id") Long id);
}